#!/bin/bash
docker run -itd \
    --name plex \
    --net host \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=Asia/Shanghai \
    -e VERSION=docker \
    -e PLEX_CLAIM=claim-GEKKMjLcPB9d9RhqUvns \
    -e MYSQL_HOST=192.168.31.100 \
    -e MYSQL_PORT=3306 \
    -e MYSQL_USERNAME=root \
    -e MYSQL_PASSWORD=19920216hjx \
    -e MYSQL_DATABASE=javdb \
    -v plex-config:/config \
    -v /mnt/115drive:/media:shared \
    --restart always \
    --device /dev/fuse \
    --device /dev/dri \
    --cap-add SYS_ADMIN \
    --security-opt apparmor:unconfined \
    --device /dev/fuse:/dev/fuse \
    --device /dev/dri:/dev/dri \
    --privileged \
    plex-rclone:latest
